-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support MFA with backup codes #269
Conversation
fe19b17
to
f0fee26
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great work overall, some suggestions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code looks fine (didn't look to much into the frontend), but I have a some questions and some nit-picks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll approve so we can merge, there are still a few inline labmdas to swtich to the useCallback
approach, but that'll be at a different time
Thank you
…if 3 or less codes are left
…, regenerated and viewed Signed-off-by: David Edler <david.edler@canonical.com>
Signed-off-by: David Edler <david.edler@canonical.com>
Signed-off-by: David Edler <david.edler@canonical.com>
Signed-off-by: David Edler <david.edler@canonical.com>
Signed-off-by: David Edler <david.edler@canonical.com>
Signed-off-by: David Edler <david.edler@canonical.com>
Signed-off-by: David Edler <david.edler@canonical.com>
Signed-off-by: David Edler <david.edler@canonical.com>
Signed-off-by: David Edler <david.edler@canonical.com>
2dc1eca
ab6d6a6
to
2dc1eca
Compare
This PR adds support for lookup secrets (backup codes) as a fallback method for TOTP multi-factor auth.
Setting up the codes (
/ui/setup_backup_codes
):Print/download:
Sign in with a backup code:
Error messages:
If user logged in using a backup code and has 3 or less of them left, the following screen will be displayed, offering to generate a new set: